﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC_Uthorization.Domain.Entity
{
    /// <summary>
    /// 用户角色关联表
    /// </summary>
    [Table("sys_user_role")]
    public class sys_user_role:Audit
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Key]
        public int id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        public int role_id { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public int useable { get; set; } = 1;

    }
}
